package com.ruoyi.monitor.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 班级监控对象 qcl_monitor
 *
 * @author ruoyi
 * @date 2024-11-01
 */
public class Monitor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    private Long id;

    /**
     * 设备号
     */
    @Excel(name = "设备号")
    private Long monitorNo;

    /**
     * 设备名
     */
    @Excel(name = "设备名")
    private String monitorName;

    /**
     * 设备ip
     */
    @Excel(name = "设备ip")
    private String monitorIp;

    /**
     * 服务商端口号
     */
    @Excel(name = "服务商端口号")
    private String monitorPort;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String monitorUsername;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String monitorPassword;

    /**
     * 视频流URL
     */
    @Excel(name = "视频流URL")
    private String monitorUrl;

    /**
     * 学校名
     */
    @Excel(name = "学校名")
    private String schoolName;

    /**
     * 班级名
     */
    @Excel(name = "班级名")
    private String className;

    /**
     * 状态（1正常 0不正常）
     */
    @Excel(name = "状态", readConverterExp = "1=正常,0=不正常")
    private String cameraStatus;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMonitorNo() {
        return monitorNo;
    }

    public void setMonitorNo(Long monitorNo) {
        this.monitorNo = monitorNo;
    }

    public String getMonitorName() {
        return monitorName;
    }

    public void setMonitorName(String monitorName) {
        this.monitorName = monitorName;
    }

    public String getMonitorIp() {
        return monitorIp;
    }

    public void setMonitorIp(String monitorIp) {
        this.monitorIp = monitorIp;
    }

    public String getMonitorPort() {
        return monitorPort;
    }

    public void setMonitorPort(String monitorPort) {
        this.monitorPort = monitorPort;
    }

    public String getMonitorUsername() {
        return monitorUsername;
    }

    public void setMonitorUsername(String monitorUsername) {
        this.monitorUsername = monitorUsername;
    }

    public String getMonitorPassword() {
        return monitorPassword;
    }

    public void setMonitorPassword(String monitorPassword) {
        this.monitorPassword = monitorPassword;
    }

    public String getMonitorUrl() {
        return monitorUrl;
    }

    public void setMonitorUrl(String monitorUrl) {
        this.monitorUrl = monitorUrl;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCameraStatus() {
        return cameraStatus;
    }

    public void setCameraStatus(String cameraStatus) {
        this.cameraStatus = cameraStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("monitorNo", getMonitorNo())
                .append("monitorName", getMonitorName())
                .append("monitorIp", getMonitorIp())
                .append("monitorPort", getMonitorPort())
                .append("monitorUsername", getMonitorUsername())
                .append("monitorPassword", getMonitorPassword())
                .append("monitorUrl", getMonitorUrl())
                .append("schoolName", getSchoolName())
                .append("className", getClassName())
                .append("cameraStatus", getCameraStatus())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
